Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TCGC] Fix naming logic for anonymous model wrapped by HttpPart #1491

Merged
merged 11 commits into from
Sep 13, 2024

Conversation

msyyc
Copy link
Member

@msyyc msyyc commented Sep 6, 2024

fix #1483
The PR contains:

  • Bug fix for empty name of anonymous model wrapped by HttpPart
  • add afterEach in test to make sure the sdkPackage.models/enums must have non-empty name.

@azure-sdk
Copy link
Collaborator

azure-sdk commented Sep 6, 2024

All changed packages have been documented.

  • @azure-tools/typespec-client-generator-core
Show changes

@azure-tools/typespec-client-generator-core - fix ✏️

Fix naming logic for anonymous model wrapped by HttpPart

@azure-sdk
Copy link
Collaborator

You can try these changes here

🛝 Playground 🌐 Website 📚 Next docs

dependabot bot and others added 3 commits September 11, 2024 14:54
Bumps [core](https://github.com/microsoft/typespec) from `0be9e8f` to
`a5fc2ce`.
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/microsoft/typespec/commit/a5fc2ce6201098d1d7095bb4e7a6109c1dd2fe9a"><code>a5fc2ce</code></a>
Customization fixes (<a
href="https://github.com/microsoft/typespec/issues/4385">#4385</a>)</li>
<li><a
href="https://github.com/microsoft/typespec/commit/2010bc4490ab84a18bf3af5ab5c77863e87d9853"><code>2010bc4</code></a>
http-client-java, compiler 0.46 (<a
href="https://github.com/microsoft/typespec/issues/4393">#4393</a>)</li>
<li>See full diff in <a
href="https://github.com/microsoft/typespec/compare/0be9e8f22bb587db69bf1fc5e73effef1e2364a5...a5fc2ce6201098d1d7095bb4e7a6109c1dd2fe9a">compare
view</a></li>
</ul>
</details>
<br />


Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…/e2e-tests/cadl-ranch-specs (#1517)

Bumps
[@azure-tools/cadl-ranch-specs](https://github.com/Azure/cadl-ranch)
from 0.37.1 to 0.37.2.
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a
href="https://github.com/Azure/cadl-ranch/commits">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@azure-tools/cadl-ranch-specs&package-manager=npm_and_yarn&previous-version=0.37.1&new-version=0.37.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Copy link
Contributor

@iscai-msft iscai-msft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Do you want to release this before next month's release or can it wait until next month's release. If you want to release it before, we've started using a release branch https://github.com/Azure/typespec-azure/blob/main/CONTRIBUTING.md#make-a-patch-release

@msyyc msyyc changed the base branch from main to release/september-2024 September 13, 2024 02:49
auto-merge was automatically disabled September 13, 2024 02:49

Merge commits are not allowed on this repository

@msyyc
Copy link
Member Author

msyyc commented Sep 13, 2024

Looks good! Do you want to release this before next month's release or can it wait until next month's release. If you want to release it before, we've started using a release branch https://github.com/Azure/typespec-azure/blob/main/CONTRIBUTING.md#make-a-patch-release

Other languages hope we could release a patch version asap so I will merge this into release branch

@msyyc msyyc enabled auto-merge (squash) September 13, 2024 02:51
@msyyc msyyc merged commit ff06852 into release/september-2024 Sep 13, 2024
22 checks passed
@msyyc msyyc deleted the fix-tcgc-multipart-model-name branch September 13, 2024 03:16
markcowl pushed a commit to markcowl/typespec-azure that referenced this pull request Sep 24, 2024
…ure#1491)

fix Azure#1483
The PR contains:
- Bug fix for empty name of anonymous model wrapped by `HttpPart`
- add `afterEach` in test to make sure the `sdkPackage.models/enums`
must have non-empty name.

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Wei Hu <[email protected]>
markcowl pushed a commit to markcowl/typespec-azure that referenced this pull request Sep 26, 2024
…ure#1491)

fix Azure#1483
The PR contains:
- Bug fix for empty name of anonymous model wrapped by `HttpPart`
- add `afterEach` in test to make sure the `sdkPackage.models/enums`
must have non-empty name.

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Wei Hu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: anonymous model in HttpPart template does not have a generated name
6 participants